home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / Debora.swf / scripts / DefineSprite_349 / frame_1 / DoAction.as
Encoding:
Text File  |  2011-12-21  |  3.7 KB  |  117 lines

  1. function btn_go()
  2. {
  3.    for(var _loc4_ in this)
  4.    {
  5.       if(typeof this[_loc4_] == "movieclip" and this[_loc4_]._name.substr(0,1) == "h")
  6.       {
  7.          this[_loc4_].onRelease = function()
  8.          {
  9.             var _loc3_ = Number(this._name.substr(1,1));
  10.             _root.fair_movie.n = _loc3_;
  11.             _root.fair_movie.gotoAndPlay(2);
  12.             _root.sound_ini4();
  13.          };
  14.       }
  15.       if(typeof this[_loc4_] == "movieclip" and this[_loc4_]._name.substr(0,1) == "x")
  16.       {
  17.          this[_loc4_].onRelease = function()
  18.          {
  19.             var _loc3_ = Number(this._name.substr(1,1));
  20.             _root.model_mc.jew02_mc.gotoAndStop(_loc3_ + 1);
  21.             _root.sound_ini4();
  22.          };
  23.       }
  24.       if(typeof this[_loc4_] == "movieclip" and this[_loc4_]._name.substr(0,1) == "j")
  25.       {
  26.          this[_loc4_].onRelease = function()
  27.          {
  28.             var _loc3_ = Number(this._name.substr(1,1));
  29.             _root.model_mc.jew01_mc.gotoAndStop(_loc3_ + 1);
  30.             _root.sound_ini4();
  31.          };
  32.       }
  33.       if(typeof this[_loc4_] == "movieclip" and this[_loc4_]._name.substr(0,1) == "w")
  34.       {
  35.          this[_loc4_].onRelease = function()
  36.          {
  37.             var _loc3_ = Number(this._name.substr(1,1)) + 1;
  38.             if(_root.model_mc.waitao_mc._currentframe == _loc3_)
  39.             {
  40.                _root.model_mc.waitao_mc.gotoAndStop(1);
  41.             }
  42.             else
  43.             {
  44.                _root.model_mc.waitao_mc.gotoAndStop(_loc3_);
  45.                _root.sound_ini4();
  46.             }
  47.          };
  48.       }
  49.       if(typeof this[_loc4_] == "movieclip" and this[_loc4_]._name.substr(0,1) == "c")
  50.       {
  51.          this[_loc4_].onRelease = function()
  52.          {
  53.             var _loc3_ = Number(this._name.substr(1,1)) + 1;
  54.             if(_root.model_mc.cap_mc._currentframe == _loc3_)
  55.             {
  56.                _root.model_mc.cap_mc.gotoAndStop(1);
  57.             }
  58.             else
  59.             {
  60.                _root.model_mc.cap_mc.gotoAndStop(_loc3_);
  61.                _root.sound_ini4();
  62.             }
  63.          };
  64.       }
  65.       if(typeof this[_loc4_] == "movieclip" and this[_loc4_]._name.substr(0,1) == "b")
  66.       {
  67.          this[_loc4_].onRelease = function()
  68.          {
  69.             var _loc3_ = Number(this._name.substr(1,1)) + 1;
  70.             if(_root.model_mc.jew03_mc._currentframe == _loc3_)
  71.             {
  72.                _root.model_mc.jew03_mc.gotoAndStop(1);
  73.             }
  74.             else
  75.             {
  76.                _root.model_mc.jew03_mc.gotoAndStop(_loc3_);
  77.                _root.sound_ini4();
  78.             }
  79.          };
  80.       }
  81.       if(typeof this[_loc4_] == "movieclip" and this[_loc4_]._name.substr(0,1) == "y")
  82.       {
  83.          this[_loc4_].onRelease = function()
  84.          {
  85.             var _loc3_ = Number(this._name.substr(1,1)) + 1;
  86.             if(_root.model_mc.yaodai_mc._currentframe == _loc3_)
  87.             {
  88.                _root.model_mc.yaodai_mc.gotoAndStop(1);
  89.             }
  90.             else
  91.             {
  92.                _root.model_mc.yaodai_mc.gotoAndStop(_loc3_);
  93.                _root.sound_ini4();
  94.             }
  95.          };
  96.       }
  97.       if(typeof this[_loc4_] == "movieclip" and this[_loc4_]._name.substr(0,1) == "g")
  98.       {
  99.          this[_loc4_].onRelease = function()
  100.          {
  101.             var _loc3_ = Number(this._name.substr(1,1)) + 1;
  102.             if(_root.model_mc.glass_mc._currentframe == _loc3_)
  103.             {
  104.                _root.model_mc.glass_mc.gotoAndStop(1);
  105.             }
  106.             else
  107.             {
  108.                _root.model_mc.glass_mc.gotoAndStop(_loc3_);
  109.                _root.sound_ini4();
  110.             }
  111.          };
  112.       }
  113.    }
  114. }
  115. stop();
  116. btn_go();
  117.